using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class FMS_FlowPointInfoMap : EntityTypeConfiguration<FMS_FlowPointInfo>
	{
		public FMS_FlowPointInfoMap()
		{
			// Primary Key
			this.HasKey(t => t.Id);

			// Properties
			this.Property(t => t.PointName)
				.HasMaxLength(50);
				
			this.Property(t => t.PointDesc)
				.HasMaxLength(20);
				
			this.Property(t => t.SignName)
				.HasMaxLength(20);
				
			this.Property(t => t.RoleList)
				.HasMaxLength(200);
				
			this.Property(t => t.AudiPeople)
				.HasMaxLength(200);
				
			// Table & Column Mappings
			this.ToTable("FMS_FlowPointInfo");
			this.Property(t => t.Id).HasColumnName("Id");
			this.Property(t => t.FlowId).HasColumnName("FlowId");
			this.Property(t => t.PointName).HasColumnName("PointName");
			this.Property(t => t.PointType).HasColumnName("PointType");
			this.Property(t => t.PointDesc).HasColumnName("PointDesc");
			this.Property(t => t.SignName).HasColumnName("SignName");
			this.Property(t => t.LogicPointId).HasColumnName("LogicPointId");
			this.Property(t => t.PointOrder).HasColumnName("PointOrder");
			this.Property(t => t.CreateSign).HasColumnName("CreateSign");
			this.Property(t => t.CanEdit).HasColumnName("CanEdit");
			this.Property(t => t.CanEnd).HasColumnName("CanEnd");
			this.Property(t => t.CanUp).HasColumnName("CanUp");
			this.Property(t => t.CanBack).HasColumnName("CanBack");
			this.Property(t => t.CanHold).HasColumnName("CanHold");
			this.Property(t => t.CanCrossBack).HasColumnName("CanCrossBack");
			this.Property(t => t.CanCrossAudi).HasColumnName("CanCrossAudi");
			this.Property(t => t.Manual_dispatch).HasColumnName("Manual_dispatch");
			this.Property(t => t.ResponsTime).HasColumnName("ResponsTime");
			this.Property(t => t.MessageNotify).HasColumnName("MessageNotify");
			this.Property(t => t.MailNotify).HasColumnName("MailNotify");
			this.Property(t => t.WindowNotify).HasColumnName("WindowNotify");
			this.Property(t => t.UpTo).HasColumnName("UpTo");
			this.Property(t => t.BackTo).HasColumnName("BackTo");
			this.Property(t => t.RoleList).HasColumnName("RoleList");
			this.Property(t => t.AudiPeople).HasColumnName("AudiPeople");
			this.Property(t => t.CreateUser).HasColumnName("CreateUser");
			this.Property(t => t.UpdateUser).HasColumnName("UpdateUser");
			this.Property(t => t.CreateTime).HasColumnName("CreateTime");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
			this.Property(t => t.CreateDeptId).HasColumnName("CreateDeptId");
			this.Property(t => t.UpdateDeptId).HasColumnName("UpdateDeptId");
		}
	}
}

